﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AoManage.aspx.cs" Inherits="Trangtrai.tochuc.AoManage"
    MasterPageFile="~/SiteMaster.Master" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1" >
      <script type="text/javascript">
          // <![CDATA[
          // ]]>
            // validate kich hoat tha  tom form
          function validateForm() {
              txtAoName.Validate();

          }
          function cbAoCodeSelectedIndexChanged(s) {
              cbGroup.PerformCallback(s.GetValue());
          }
          function cbAoCodeTiaAoSelectedChange(s) {
              cbAoCodeTiaAo.PerformCallback(s.GetValue());
              
          }
          
    </script>
    
    <center>
        <table width="960px" bgcolor="White">
            <tr>
                <td bgcolor="#94B6EF" colspan="5">
                    <dx:ASPxLabel ID="lblMess" runat="server"></dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td colspan="5" align="center" bgcolor="#94B6EF">
                    <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="THÊM MỚI AO">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    <br />
                </td>
            </tr>
            <tr>
                <td class="style4">
                </td>
                <td class="style3" align="left" bgcolor="#94B6EF">
                    <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="Ngày tạo">
                    </dx:ASPxLabel>
                </td>
                <td class="style1" align="left">
                    <dx:ASPxDateEdit ID="tbxDateTime" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                        CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                        <ButtonStyle Width="13px">
                        </ButtonStyle>
                       
                    </dx:ASPxDateEdit>
                </td>
                <td class="style2" align="left" bgcolor="#94B6EF">
                    <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="Đội quản lý">
                    </dx:ASPxLabel>
                </td>
                <td align="left">
                    <dx:ASPxComboBox ID="cbxGroupManage" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                        CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                        ValueType="System.String" TextField="groupName" ValueField="groupId">
                        <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                        </LoadingPanelImage>
                      
                    </dx:ASPxComboBox>
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    <br />
                </td>
            </tr>
            <tr>
                <td class="style4">
                </td>
                <td class="style3" align="left" bgcolor="#94B6EF">
                    <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text="Mã số ao">
                    </dx:ASPxLabel>
                </td>
                <td class="style1" align="left">
                    <dx:ASPxTextBox ID="tbxAOCode" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                        CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                       
                    </dx:ASPxTextBox>
                </td>
                <td class="style2" align="left" bgcolor="#94B6EF">
                    <dx:ASPxLabel ID="ASPxLabel6" runat="server" Text="Tình trạng">
                    </dx:ASPxLabel>
                </td>
                <td align="left">
                    <dx:ASPxComboBox ID="cbxStatus" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                        CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                        ValueType="System.String" TextField="statusName" ValueField="aoStatusId">
                        
                        <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                        </LoadingPanelImage>
                    </dx:ASPxComboBox>
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    <br />
                </td>
            </tr>
            <tr>
                <td class="style4">
                </td>
                <td class="style3" align="left" bgcolor="#94B6EF">
                    <dx:ASPxLabel ID="ASPxLabel7" runat="server" Text="Tên ao">
                    </dx:ASPxLabel>
                </td>
                <td class="style1" align="left">
                    <dx:ASPxTextBox ID="tbxAoName" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                        CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                        
                    </dx:ASPxTextBox>
                </td>
                <td class="style2" align="left" bgcolor="#94B6EF">
                    <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="Ghi chú">
                    </dx:ASPxLabel>
                </td>
                <td align="left" rowspan="4">
                    <dx:ASPxMemo ID="tbxNote" runat="server" Height="80px" Width="256px" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                        CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                    </dx:ASPxMemo>
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    <br />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td align="left" bgcolor="#94B6EF">
                    <dx:ASPxLabel ID="ASPxLabel9" runat="server" Text="Diện tích">
                    </dx:ASPxLabel>
                </td>
                <td align="left">
                    <dx:ASPxTextBox ID="tbxArea" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                        CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                       
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    <br />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td align="left" bgcolor="#94B6EF">
                    <dx:ASPxLabel ID="ASPxLabel10" runat="server" Text="Độ sâu">
                    </dx:ASPxLabel>
                </td>
                <td align="left">
                    <dx:ASPxTextBox ID="tbxDeep" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                        CssPostfix="Office2003Blue" 
                        SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" >
                      
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td colspan="4" align="left">
                    <dx:ASPxButton ID="btnAddNew" runat="server" Text="Thêm mới" CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css"
                        CssPostfix="SoftOrange" 
                        SpriteCssFilePath="~/App_Themes/SoftOrange/{0}/sprite.css" 
                        onclick="btnAddNew_Click">
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <table width="960px">
            <tr>
                <td align="center" bgcolor="#94B6EF">
                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="QUẢN LÝ AO">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td>
                    <dx:ASPxGridView ClientInstanceName="dtgAoMan" ID="dtgAoMan" runat="server" 
                        Width="960px" AutoGenerateColumns="False"
                        CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                        CssPostfix="Office2003Blue" KeyFieldName="aoSeasonId" 
                        oncelleditorinitialize="dtgAoMan_CellEditorInitialize" onrowupdating="dtgAoMan_RowUpdating"
                        >
                        <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" CssPostfix="Office2003Blue">
                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                            </Header>
                            <LoadingPanel ImageSpacing="10px">
                            </LoadingPanel>
                        </Styles>
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <Columns>
                           <dx:GridViewCommandColumn VisibleIndex="0">
                                <EditButton Text="Sửa" Visible="true">
                                </EditButton>
                           </dx:GridViewCommandColumn> 
                           <dx:GridViewDataColumn Caption="Mã ao" FieldName="aoCode" VisibleIndex="1">
                           
                           </dx:GridViewDataColumn>
                              <dx:GridViewDataComboBoxColumn Caption="Mùa vụ" FieldName="seasonName" VisibleIndex="2">
                                <PropertiesComboBox TextField="seasonName" ValueField="seasonId" EnableSynchronization="False"
                                    IncrementalFilteringMode="StartsWith">
                                    
                                </PropertiesComboBox>
                            </dx:GridViewDataComboBoxColumn>
                              
                              <dx:GridViewDataComboBoxColumn Caption="Đội quản lý" FieldName="groupCode" VisibleIndex="2">
                                <PropertiesComboBox TextField="groupCode" ValueField="groupId" EnableSynchronization="False"
                                    IncrementalFilteringMode="StartsWith">
                                    
                                </PropertiesComboBox>
                            </dx:GridViewDataComboBoxColumn>                            
                           
                              <dx:GridViewDataComboBoxColumn Caption="Giai đoạn" FieldName="statusName" VisibleIndex="2">
                                <PropertiesComboBox TextField="statusName" ValueField="aoStatusId" EnableSynchronization="False"
                                    IncrementalFilteringMode="StartsWith">
                                    
                                </PropertiesComboBox>
                            </dx:GridViewDataComboBoxColumn>
                            
                            <dx:GridViewDataTextColumn Caption="Ghi chú" FieldName="note" VisibleIndex="5">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <StylesEditors>
                            <ProgressBar Height="25px">
                            </ProgressBar>
                        </StylesEditors>
                    </dx:ASPxGridView>
                </td>
            </tr>
            
        </table>
        <dx:ASPxPageControl ID="tpCtrls" runat="server"  Width="960px"
            CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" CssPostfix="Office2003Blue"
            SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
            ActiveTabIndex="0"
            EnableCallBacks="True" 
            ClientInstanceName="tpCtrls"
            >
            <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
            </LoadingPanelImage>
            <ContentStyle>
                <Border BorderColor="#002D96" BorderStyle="Solid" BorderWidth="1px" />
            </ContentStyle>
            <TabPages>
                <dx:TabPage Name="idDetails" Text="Chi Tiết Ao" ToolTip="Chi Tiết Ao" >
                    <ContentCollection>
                        <dx:ContentControl runat="server">
                            
                            <center>
                                <table width="500px" style="border: thin solid #94B6EF;">
                                    <tr>
                                        <td>
                                         <dx:ASPxLabel ID="ASPxLabel74" runat="server" Text="Mã ao">
                                        </dx:ASPxLabel>
                                        </td> 
                                        <td>
                                            <dx:ASPxComboBox ID="cbDetailsAoCode" runat="server"  Width="170px" TextField="aoCode" 
                                                ValueField="aoId" ValueType="System.Int32" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="cbAoCode"
                                                priteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
                                                >
                                                <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                            </dx:ASPxComboBox>
                                        </td>    
                                        
                                        <td>
                                            <dx:ASPxLabel runat="server" Text="Mùa vụ">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cbDetailsSeason" runat="server"  Width="170px" TextField="seasonName" 
                                                ValueField="seasonId" ValueType="System.Int32" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="cbAoCode"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
                                                >
                                                <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" >
                                            <dx:ASPxButton  ID="btnDetailsView" Text="Chi tiết" runat="server" Width="70px" CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css"
                                                CssPostfix="SoftOrange" 
                                                SpriteCssFilePath="~/App_Themes/SoftOrange/{0}/sprite.css" 
                                                AutoPostBack="true"
                                                OnClick="btnDetailsView_Click">
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                                <table width="500px" style="border: thin solid #94B6EF;">
                                    <tr>
                                        <td colspan="4" bgcolor="#94B6EF" align="center" />
                                        <dx:ASPxLabel ID="ASPxLabel26" runat="server" Text="THÔNG SỐ AO">
                                        </dx:ASPxLabel>
                                        <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            
                                            <dx:ASPxLabel ID="ASPxLabel12" runat="server" Text="Tên Ao">
                                            </dx:ASPxLabel>
                                            
                                        </td>
                                       <td>
                                        <dx:ASPxLabel ID ="lbAoName" runat="server">
                                        
                                        </dx:ASPxLabel>
                                       </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel13" runat="server" Text="Tuổi tôm">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbTomAge" runat="server" Text="3">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <br />
                                        </td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel14" runat="server" Text="Số lượng tôm thả">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style9">
                                            <dx:ASPxLabel ID="lbNumberTom" runat="server" Text="1000000">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="lb" runat="server" Text="Kích thước tôm">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbTomWeight" runat="server" Text="30kg">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" />
                                        <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel15" runat="server" Text="Ngày thả tôm">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style9">
                                            <dx:ASPxLabel ID="lbDatePutTom" runat="server" Text="9/11/2011">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel17" runat="server" Text="Số lượng tôm còn">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbNumberTomInAo" runat="server" Text="50000">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" />
                                        <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel16" runat="server" Text="Diện tích">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style9">
                                            <dx:ASPxLabel ID="lblArea" runat="server" Text="1000m2">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel19" runat="server" Text="Trạng thái">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbStatus" runat="server" Text="Đang nuôi">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" />
                                        <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel20" runat="server" Text="Mực nước">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style9">
                                            <dx:ASPxLabel ID="lbDeepWater" runat="server" Text="2">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel22" runat="server" Text="Sản lượng">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbSLuong" runat="server" Text="20000">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" />
                                        <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel21" runat="server" Text="Đội quản lý">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style9">
                                            <dx:ASPxLabel ID="lbGroupManage" runat="server" Text="G1">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel24" runat="server" Text="Ghi chú">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbNote" runat="server" Text="Nothing to say">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                        </td>
                                        <caption>
                                            <br />
                                        </caption>
                                    </tr>
                                    <tr>
                                        <td align="left" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel25" runat="server" Text="Cử ăn">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style9">
                                            <dx:ASPxRadioButton ID="CU1" runat="server" Checked="True" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                                                Text="Cử 1">
                                            </dx:ASPxRadioButton>
                                        </td>
                                        <td align="left" class="style8">
                                            <dx:ASPxRadioButton ID="CU2" runat="server" Checked="True" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                                                Text="Cử 2">
                                            </dx:ASPxRadioButton>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxRadioButton ID="CU3" runat="server" Checked="True" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                                                Text="Cử 3">
                                            </dx:ASPxRadioButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <br />
                                        </td>
                                    </tr>
                                </table>
                                <table width="500px" style="border: thin solid #94B6EF;">
                                    <tr>
                                        <td colspan="4" bgcolor="#94B6EF" align="center">
                                            <dx:ASPxLabel ID="ASPxLabel27" runat="server" Text="THÔNG SỐ MÔI TRƯỜNG">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel23" runat="server" Text="Độ mặn">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style10">
                                            <dx:ASPxLabel ID="lbDoMan" runat="server" Text="20%">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel29" runat="server" Text="OXY Sinh hóa(BOD)">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbOXY" runat="server" Text="8mg/lit">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel28" runat="server" Text="Độ kiềm">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style10">
                                            <dx:ASPxLabel ID="lbDoKiem" runat="server" Text="8mg/lit">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel31" runat="server" Text="OXY hóa học(COD)">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbCOD" runat="server" Text="8mg/lit">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel33" runat="server" Text="NH3/NH4+">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style10">
                                            <dx:ASPxLabel ID="lbNH" runat="server" Text="8mg/lit">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel35" runat="server" Text="OXY hòa tan(DO)">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbDO" runat="server" Text="8mg/lit">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel30" runat="server" Text="Độ trong(cm)">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style10">
                                            <dx:ASPxLabel ID="lbDoTrong" runat="server" Text="20 cm">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel34" runat="server" Text="Kích cỡ tôm">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbSizeTom" runat="server" Text="8con/1kg">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel32" runat="server" Text="Tình trạng sức khỏe">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style10">
                                            <dx:ASPxLabel ID="lbHealthStatus" runat="server" Text="Tốt">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel37" runat="server" Text="Màu nước">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbWaterColor" runat="server" Text="Xanh">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel36" runat="server" Text="PH sáng">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style10">
                                            <dx:ASPxLabel ID="lbPHSang" runat="server" Text="5">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel39" runat="server" Text="PH Chiều">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxLabel ID="lbPHChieu" runat="server" Text="5.5">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <br />
                                        </td>
                                    </tr>
                                </table>
                            </center>
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
                <dx:TabPage Name="idSpilitAo" Text="Tách Ao" ToolTip="Tách Ao">
                    <ContentCollection>
                        <dx:ContentControl runat="server">
                            <center>
                                <table width="700px" style="border: thin solid #94B6EF;">
                                    <tr>
                                        <td colspan="4" bgcolor="#94B6EF" align="center" />
                                        <dx:ASPxLabel ID="ASPxLabel38" runat="server" Text="TÁCH AO">
                                        </dx:ASPxLabel>
                                        <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="left" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel66" runat="server" Text="AO CŨ">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td colspan="2" align="left" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel65" runat="server" Text="KHỞI TẠO AO MỚI">
                                            </dx:ASPxLabel>
                                        </td>
                                       
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="left">
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel40" runat="server" Text="Ngày tách">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style7">
                                            <dx:ASPxDateEdit ID="cbxSplitDate" runat="server">
                                            </dx:ASPxDateEdit>
                                        </td>
                                    </tr>
                                    <tr>
                                       
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel42" runat="server" Text="Mã ao cũ">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                             <dx:ASPxComboBox ID="cbxOldAoCode" runat="server"  Width="170px" TextField="aoCode" 
                                                ValueField="aoId" ValueType="System.Int32" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="cbAoCode"
                                                AutoPostBack="true"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" OnSelectedIndexChanged="cbxOldAoCode_SelectedIndexChanged" 
                                                >
                                                <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                               
                                                <ValidationSettings CausesValidation="false">
                                                    <RequiredField IsRequired="true" ErrorText="Phải chọn mã ao"/>
                                                </ValidationSettings>
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel44" runat="server" Text="Mã ao mới">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style7">
                                            <dx:ASPxTextBox ID="tbxSpilitAoCode" runat="server" Width="170px">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" />
                                        <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel46" runat="server" Text="Tên ao cũ">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxTextBox ID="tbxOldAoName" runat="server" Width="170px">
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel48" runat="server" Text="Tên ao mới">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style7">
                                            <dx:ASPxTextBox ID="tbxSpilitAoName" runat="server" Width="170px">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" />
                                        <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel50" runat="server" Text="Tỉ lệ còn ">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxTextBox ID="tbxExistNumberTom" runat="server" Width="170px">
                                            </dx:ASPxTextBox>
                                        </td>
                                         <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel52" runat="server" Text="Tỉ lệ qua ao mới">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style7">
                                            <dx:ASPxTextBox ID="tbxSpilitUnit" runat="server" Width="170px">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" />
                                        <br />
                                        </td>
                                    </tr>
                                    <tr>
                                       
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel54" runat="server" Text="Mùa vụ">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                              <dx:ASPxComboBox ID="cbxOldAoSeason" runat="server"  Width="170px" TextField="seasonName" 
                                                ValueField="seasonId" ValueType="System.Int32" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="cbAoCode"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
                                                >
                                                <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                               
                                                <ValidationSettings CausesValidation="false">
                                                    <RequiredField IsRequired="true" ErrorText="Phải chọn mã ao"/>
                                                </ValidationSettings>
                                            </dx:ASPxComboBox>
                                            
                                        </td>
                                         <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel56" runat="server" Text="Mùa vụ">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style7">
                                          
                                             <dx:ASPxComboBox ID="cbxSpilitAoSeason" runat="server"  Width="170px" TextField="seasonName" 
                                                ValueField="seasonId" ValueType="System.Int32" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="cbAoCode"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
                                                >
                                                <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                               
                                                <ValidationSettings CausesValidation="false">
                                                    <RequiredField IsRequired="true" ErrorText="Phải chọn mã ao"/>
                                                </ValidationSettings>
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" />
                                        <br />
                                        </td>
                                    </tr>
                                    <tr>
                                       
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel58" runat="server" Text="Đội quản lý">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            
                                            <dx:ASPxComboBox ID="cbxOldAoGroup" runat="server"  Width="170px" TextField="groupCode" 
                                                ValueField="groupId" ValueType="System.Int32" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="cbAoCode"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
                                                >
                                                <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                                
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td align="left" class="style6" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel60" runat="server" Text="Đội quản lý">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style7">
                                            
                                            <dx:ASPxComboBox ID="cbxSpilitAoGroup" runat="server"  Width="170px" TextField="groupCode" 
                                                ValueField="groupId" ValueType="System.Int32" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="cbAoCode"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
                                                >
                                                <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                                
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>
                                  
                                    <tr>
                                        <td colspan="4">
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style8" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel67" runat="server" Text="Ghi chú">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxMemo ID="tbxNoteOldAo" runat="server" Height="71px" Width="191px">
                                            </dx:ASPxMemo>
                                        </td>
                                        <td align="left" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel64" runat="server" Text="Ghi chú">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style7">
                                            <dx:ASPxMemo ID="tbxNoteNewAo" runat="server" Height="71px" Width="191px">
                                            </dx:ASPxMemo>
                                        </td>
                                        
                                    </tr>
                                    <tr align="left">
                                        <td colspan="4" bgcolor="#94B6EF">
                                            <dx:ASPxButton ID="btnSpilitAo" runat="server" CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css"
                                                CssPostfix="SoftOrange" SpriteCssFilePath="~/App_Themes/SoftOrange/{0}/sprite.css"
                                                Text="Tách Ao" OnClick="btnSpilitAo_Click">
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                            </center>
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
                <dx:TabPage Name="idPutAo" Text="Tỉa Ao">
                    <ContentCollection>
                        <dx:ContentControl runat="server">
                            <center>
                                <table width="700px" style="border: thin solid #94B6EF;">
                                    <tr>
                                        <td colspan="4" bgcolor="#94B6EF" align="center" >
                                        </td>
                                        <dx:ASPxLabel ID="ASPxLabel11" runat="server" Text="TỈA AO">
                                        </dx:ASPxLabel>
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="left" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel41" runat="server" Text="KHỞI TẠO AO MỚI">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="left">
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style3" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel45" runat="server" Text="Ngày tỉa">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style7">
                                            <dx:ASPxDateEdit ID="cbxDateGet" runat="server" ClientInstanceName="cbxDateGet">
                                            </dx:ASPxDateEdit>
                                        </td>
                                        <td align="left" class="style3" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel47" runat="server" Text="Mùa vụ">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style13">
                                           
                                            <dx:ASPxComboBox ID="cbxSeasonTia" runat="server"  Width="170px" TextField="seasonName" 
                                                ValueField="seasonId" ValueType="System.Int32" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="cbxSeasonTia"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"  
                                                >
                                                <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                               
                                                <ValidationSettings CausesValidation="false">
                                                    <RequiredField IsRequired="true" />
                                                </ValidationSettings>
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" >
                                            <br />
                                        </td>
                                        </td>
                                        
                                    </tr>
                                    <tr>
                                        <td align="left" class="style3" bgcolor="#94B6EF">
                                         <dx:ASPxLabel ID="ASPxLabel49" runat="server" Text="Mã ao">
                                        </dx:ASPxLabel>
                                        </td>
                                       
                                        <td align="left" class="style7">
                                           
                                             <dx:ASPxComboBox ID="tbxAoCodeTia" runat="server"  Width="170px" TextField="aoCode" 
                                                ValueField="aoId" ValueType="System.Int32" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="cbAoCodeTiaAo"
                                                AutoPostBack="true"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" OnSelectedIndexChanged="tbxAoCodeTia_SelectedIndexChanged" 
                                                >
                                                <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                               
                                                <ValidationSettings CausesValidation="false">
                                                    <RequiredField IsRequired="true" ErrorText="Phải chọn mã ao"/>
                                                </ValidationSettings>
                                            </dx:ASPxComboBox>
                                             <td align="left" class="style3" bgcolor="#94B6EF">
                                                   <dx:ASPxLabel ID="ASPxLabel51" runat="server" Text="Đội quản lý">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td align="left"  class="style13">
                                                    <dx:ASPxComboBox ID="cbxGroupTia" runat="server" 
                                                        ClientInstanceName="cbxGroupTia" 
                                                        CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                        CssPostfix="Office2003Blue" 
                                                        SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
                                                        TextField="groupName" ValueField="groupId" ValueType="System.Int32" 
                                                        Width="170px">
                                                        <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <ValidationSettings>
                                                            <RequiredField ErrorText="Phải chọn đội quản lý" IsRequired="True" />
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                </td>
                                        </td>
                                        
                                            </tr>
                                            <tr>
                                                <td colspan="4">
                                                    <br />

                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" bgcolor="#94B6EF" class="style3">
                                                    <dx:ASPxLabel ID="ASPxLabel53" runat="server" Text="Tên ao mới">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td align="left" class="style7">
                                                    <dx:ASPxTextBox ID="tbxAoNameTia" runat="server" 
                                                        ClientInstanceName="tbxAoNameTia" Width="170px">
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td align="left" bgcolor="#94B6EF" class="style14">
                                                    <dx:ASPxLabel ID="ASPxLabel69" runat="server" Text="Ghi chú">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td align="left" class="style13" rowspan="3">
                                                    <dx:ASPxMemo ID="tbxNoteTia" runat="server" Height="71px" Width="191px">
                                                    </dx:ASPxMemo>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="4" />
                                                    <br />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" bgcolor="#94B6EF" class="style6">
                                                        <dx:ASPxLabel ID="ASPxLabel57" runat="server" Text="Tỉ lệ tôm còn">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td align="left" class="style7">
                                                        <dx:ASPxTextBox ID="tbxPercenTomTia" runat="server" 
                                                            ClientInstanceName="tbxPercenTomTia" Width="170px">
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" bgcolor="#94B6EF" colspan="4">
                                                        <dx:ASPxButton ID="btnTia" runat="server" ClientInstanceName="btnTia" 
                                                            CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css" CssPostfix="SoftOrange" 
                                                            OnClick="btnTia_Click" 
                                                            SpriteCssFilePath="~/App_Themes/SoftOrange/{0}/sprite.css" Text="Tỉa Ao">
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                        
                                    </tr>
                                </table>
                            </center>
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
                <dx:TabPage Text="Thả Tôm" Name="tbthatom" >
                    <ContentCollection>
                        <dx:ContentControl runat="server">
                            <center>
                                <table width="800px" style="border: thin solid #94B6EF;">
                                    <tr>
                                        <td colspan="4" bgcolor="#94B6EF" align="center" />
                                        <dx:ASPxLabel ID="ASPxLabel43" runat="server" Text="THẢ TÔM">
                                        </dx:ASPxLabel>
                                        <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="left" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel55" runat="server" Text="KÍCH HOẠT THẢ TÔM">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="left">
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style10" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel59" runat="server" Text="Mã số ao">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style12">
                                            
                                            <dx:ASPxComboBox ID="cbAoCode" runat="server"  Width="170px" TextField="aoCode" 
                                                ValueField="aoId" ValueType="System.Int32" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="cbAoCode"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
                                                >
                                                <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                               
                                                <ValidationSettings CausesValidation="false">
                                                    <RequiredField IsRequired="true" ErrorText="Phải chọn mã ao"/>
                                                </ValidationSettings>
                                                <ClientSideEvents  SelectedIndexChanged="function (s,e){cbAoCodeSelectedIndexChanged(s);}"/>
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td align="left" class="style11" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel61" runat="server" Text="Ngày thả">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                            <dx:ASPxDateEdit ID="dtNgayTha" Width="170px" runat ="server" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="dtNgayTha"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                                <ValidationSettings CausesValidation="false">
                                                    <RequiredField IsRequired="true" ErrorText="Chọn ngày thả tôm"/>
                                                </ValidationSettings>
                                            </dx:ASPxDateEdit>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" >
                                            <br />
                                        </td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style10" bgcolor="#94B6EF">
                                        </td>
                                        <dx:ASPxLabel ID="ASPxLabel62" runat="server" Text="Tên ao">
                                        </dx:ASPxLabel>
                                        <td align="left" class="style12">
                                            <dx:ASPxTextBox ID="txtAoName" runat="server" Width="170px" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="txtAoName"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" >
                                                <ValidationSettings  CausesValidation="false">
                                                    <RequiredField IsRequired="true" ErrorText="Giá trị yêu cầu nhập"/>
                                                    <RegularExpression  ValidationExpression=".*" ErrorText="Giá trị yêu cầu nhập"/>
                                                </ValidationSettings>
                                            </dx:ASPxTextBox>
                                            
                                            <td align="left" bgcolor="#94B6EF" class="style11">
                                                <dx:ASPxLabel ID="ASPxLabel63" runat="server" Text="Vụ Thả">
                                                </dx:ASPxLabel>
                                            </td>
                                            <td align="left">
                                                <dx:ASPxComboBox ID="cbSeason" runat="server" ClientInstanceName="cbSeason" 
                                                    CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                    CssPostfix="Office2003Blue" 
                                                    SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
                                                    TextField="seasonName" ValueField="seasonId" ValueType="System.Int32" 
                                                    Width="170px">
                                                    <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                    </LoadingPanelImage>
                                                    <ValidationSettings>
                                                        <RequiredField ErrorText="Yêu cầu chọn mùa vụ" IsRequired="True" />
                                                    </ValidationSettings>
                                                </dx:ASPxComboBox>
                                            </td>
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" >
                                            <br />
                                        </td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left" class="style10" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel68" runat="server" Text="Số lượng">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style12">
                                            <dx:ASPxTextBox ID="txtAmount" runat="server" Width="170px" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="txtAmount"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                                <ValidationSettings CausesValidation="false">
                                                    <RequiredField  IsRequired="true" ErrorText="Giá trị yêu cầu nhập"/>
                                                    <RegularExpression ValidationExpression="[0-9]" ErrorText="Giá trị phải là số"/>
                                                </ValidationSettings>
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td align="left" class="style11" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel70" runat="server" Text="Đội quản lý">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left">
                                             <dx:ASPxComboBox ID="cbGroup" runat="server" Width="170px" 
                                                 TextField="groupCode" ValueField="groupId" ValueType="System.Int32" 
                                                 CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                 CssPostfix="Office2003Blue" 
                                                 ClientInstanceName="cbGroup"
                                                 SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                                
                                                 <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                 </LoadingPanelImage>
                                                <ValidationSettings CausesValidation="false" >
                                                    <RequiredField IsRequired="true" ErrorText="Yêu cầu chọn đội quản lý"/>
                                                </ValidationSettings>
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" />
                                        <br />
                                        
                                    </tr>
                                    <tr>
                                        <td align="left" bgcolor="#94B6EF" class="style10">
                                            <dx:ASPxLabel ID="ASPxLabel71" runat="server" Text="Loại tôm giống">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style12">
                                             <dx:ASPxComboBox ID="cbTomCategory" runat="server" Width="170px" 
                                                 TextField="tomCode" ValueField="tomId" ValueType="System.Int32" 
                                                 CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                 CssPostfix="Office2003Blue" 
                                                 ClientInstanceName="cbTomCategory"
                                                 SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                                
                                                 <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                                 </LoadingPanelImage>
                                                 <ValidationSettings CausesValidation="false">
                                                    <RequiredField IsRequired="true" ErrorText="Yêu cầu chọn tôm giống"/>
                                                 </ValidationSettings>
                                                
                                            </dx:ASPxComboBox>
                                        </td>
                                         <td align="left" class="style11" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel72" runat="server" Text="Ghi chú">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style7" rowspan="3">
                                             <dx:ASPxMemo ID="txtNote" runat="server" Width="170px" 
                                                 CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                 CssPostfix="Office2003Blue" 
                                                 ClientInstanceName="txtNote"
                                                 SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
                                                 Height="63px">
                                                
                                             </dx:ASPxMemo>
                                        </td>
                                        
                                    </tr>
                                    <tr>
                                        <td colspan="4"><br /></td>
                                    </tr>
                                    <tr>
                                       
                                        <td align="left" class="style10" bgcolor="#94B6EF">
                                            <dx:ASPxLabel ID="ASPxLabel73" runat="server" Text="Mực Nước">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td align="left" class="style12">
                                            <dx:ASPxTextBox ID="txtMucNuoc" runat="server" Width="170px" 
                                                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                                                CssPostfix="Office2003Blue" 
                                                ClientInstanceName="txtMucNuoc"
                                                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                                <ValidationSettings CausesValidation="false">
                                                    <RequiredField IsRequired="true" ErrorText="Yêu cầu nhập mức nước"/>
                                                </ValidationSettings>
                                                
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td colspan="4" align="left" bgcolor="#94B6EF">
                                            <dx:ASPxButton ID="btnActive" runat="server" CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css"
                                                CssPostfix="SoftOrange" SpriteCssFilePath="~/App_Themes/SoftOrange/{0}/sprite.css"
                                                ClientInstanceName="btnActive"
                                                Text="Kích hoạt" AutoPostBack="false" OnClick="btnActive_Click">
                                                
                                            <ClientSideEvents Click="function (s,e){validateForm()}" />    
                                            
                                            </dx:ASPxButton>
                                                                                        
                                        </td>
                                    </tr>
                                </table>
                            </center>
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
            </TabPages>
            <LoadingPanelStyle ImageSpacing="6px">
            </LoadingPanelStyle>
        </dx:ASPxPageControl>
    </center>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">

    <script type="text/javascript" src="../../js/jquery-latest.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {

            $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav

            $("ul.topnav li span").click(function() { //When trigger is clicked...

                //Following events are applied to the subnav itself (moving subnav up and down)
                $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click

                $(this).parent().hover(function() {
                }, function() {
                    $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
                });
                ;
                //Following events are applied to the trigger (Hover events for the trigger)
            }).hover(function() {
                $(this).addClass("subhover"); //On hover over, add class "subhover"
            }, function() {	//On Hover Out
                $(this).removeClass("subhover"); //On hover out, remove class "subhover"
            });

        });
    </script>

    <style type="text/css">
        .style1
        {
            width: 261px;
        }
        .style2
        {
            width: 167px;
        }
        .style3
        {
            width: 126px;
        }
        .style4
        {
            width: 121px;
        }
        .style7
        {
            width: 176px;
        }
        .style13
        {
            width: 348px;
        }
        .style14
        {
            width: 88px;
        }
    </style>
</asp:Content>
